<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    
    function get_current_username()
    {
        $CI = & get_instance();
        
        return $CI->session->userdata('username');
        
    }
?>